#include <iostream>
#include <queue>
#include <stdlib.h>

using namespace std;

struct cmp
{
    bool operator()(int &a,int&b) const
    {
        return a>b;
    }
};

int main()
{
    priority_queue<int, vector<int>, cmp>q;
    for(int i=1;i<5;i++)
    {
        q.push(i*10);
        cout<<"push element"<<i<<endl;
    }

    q.push(15);
    q.push(4);
    int i=1;

    while(!q.empty())
    {
        int temp=q.top();
        q.pop();
        cout<<"the "<<i<<"data is"<<temp<<endl;
    }

    system("pause");
    return 0;
}